package com.av.bcacc.jetpack.databinding;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.av.bcacc.jetpack.R;

public class DatabindingEnterActivity extends AppCompatActivity {

    private Button normalBtn;
    private Button bindingBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_databinding_enter);
        normalBtn = findViewById(R.id.button5);
        bindingBtn = findViewById(R.id.button6);
        normalBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(DatabindingEnterActivity.this,NormalActivity.class));
            }
        });
        bindingBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(DatabindingEnterActivity.this,DatabindingActivity.class));
            }
        });
    }
}
